package com.jprocms.module.cms.controller.admin.content.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import org.springframework.lang.Nullable;

import javax.validation.constraints.NotNull;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class ContentImageVo {
    /**
     * 图片名称
     */
    @Length(max = 150)
    @Nullable
    private String name;
    /**
     * 图片描述
     */
    @Length(max = 500)
    @Nullable
    private String description;
    /**
     * 图片URL
     */
    @Length(max = 255)
    @NotNull
    private String url = "";
}
